package com.blb.community.controller;

import com.blb.community.utils.VerifyCodeUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * @Author 帅帅
 * @Date 2022/7/20 15:50
 * @PackageName:com.blb.community.controller
 * @ClassName: CodeController
 * @Description: TODO
 * @Version 1.0
 */
@RestController
@RequestMapping
public class CodeController {

    @GetMapping("/code")
    public void getCode() {
        try {
            String code = VerifyCodeUtils.getCode();
            System.out.println(code);
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
